package com.lantosec.hmrp.modules.eval.vo;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.lantosec.hmrp.modules.eval.entity.EvalApply;
import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.eval.entity.EvalApplyDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 奖惩申报 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="EvalApply对象", description="奖惩申报")
public class EvalApplyVO extends BaseVO<EvalApply> {
    private static final long serialVersionUID = 1L;


    public EvalApplyVO(EvalApply entity){
        this.evalApplyId = entity.getEvalApplyId();
        this.applyTitle = entity.getApplyTitle();
        this.applyUserId = entity.getApplyUserId();
        this.applyUser = entity.getApplyUser();
        this.applyTime = entity.getApplyTime();
        this.applyType = entity.getApplyType();
    }

    @Override
    public EvalApply convertToEntity(){
        return new EvalApply(this);
    }


    @ApiModelProperty(value = "主键ID")
    private Integer evalApplyId;

    @ApiModelProperty(value = "申报标题")
    private String applyTitle;

    @ApiModelProperty(value = "申报人ID")
    private String applyUserId;

    @ApiModelProperty(value = "申报人")
    private String applyUser;

    @ApiModelProperty(value = "申报时间")
    private Date applyTime;

    @ApiModelProperty(value = "申报奖惩类型(1科室 3个人)")
    private Integer applyType;

    private List<EvalApplyDetailVO> evalApplyList;
}
